/*package tests.questions;

import kpi.java_training.testing.questions.IntQuestion;
//import org.junit.Assert;
import kpi.java_training.testing.questions.Question;
//import org.junit.Before;
//import org.junit.Test;

import java.util.ArrayList;



public class IntQuestionTest {
    private Question question;

    @Before
    public void setUp() {
        ArrayList<String> qVariants = new ArrayList<String>();
        qVariants.add("first");
        qVariants.add("second");
        qVariants.add("third");
        ArrayList<Integer> cAnswers = new ArrayList<Integer>();
        cAnswers.add(2);
        cAnswers.add(4);
        question = new IntQuestion("test question", qVariants, cAnswers);
    }

    @Test
    public void testIsCorrect1() {
        question.setAnswer("1");
        Assert.assertFalse(question.isCorrect());
    }

    @Test
    public void testIsCorrect2() {
        question.setAnswer("2");
        Assert.assertTrue(question.isCorrect());
    }

    @Test
    public void testIsCorrect4() {
        question.setAnswer("4");
        Assert.assertTrue(question.isCorrect());
    }

    @Test
    public void testIsCorrectEmpty() {
        question.setAnswer("");
        Assert.assertFalse(question.isCorrect());
    }

    @Test
    public void testClearAnswer() {
        question.setAnswer("2");
        question.clearAnswer();
        Assert.assertFalse(question.isCorrect());
    }

    @Test
    public void testGetQuestionSaveData() {
        String s = question.getQuestionSaveData();
        Assert.assertEquals("2\ntest question\n3\nfirst\nsecond\nthird\n2\n2\n4", s);
    }
}     */
